use std::path::PathBuf;

use argh::FromArgs;

#[derive(FromArgs)]
#[argh(description = "aspect user agent")]
pub struct Args {
    #[argh(option, short = 'd', description = "datadir")]
    pub datadir: PathBuf,

    #[argh(option, short = 'u', description = "sqlite:// database url")]
    pub database_url: Option<String>,

    #[argh(
        option,
        short = 'r',
        description = "RPC port (default 12546",
        default = "12546"
    )]
    pub rpc_port: u16,
}
